package com.dy.design_pattern_study.memento_pattern.dome3;

import lombok.Data;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-11
 * @Content 游戏备忘录
 * 很有问题啊，角色有多少个字段，备忘录就得准备一些相应的字段，怪不得那么耗费内存
 */
@Data
public class GameMemento {
    /**
     * 体力
     */
    private int vitMemento;
    /**
     * 攻击力
     */
    private int atkMemento;
    /**
     * 防御力
     */
    private int defMemento;

    /**
     * 保存
     * @param vitMemento
     * @param atkMemento
     * @param defMemento
     */
    public GameMemento(int vitMemento, int atkMemento, int defMemento) {
        this.vitMemento = vitMemento;
        this.atkMemento = atkMemento;
        this.defMemento = defMemento;
    }
}
